package cl.ufro.dis.ttmic;


import cl.ufro.dis.ttmic.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;

public class SegundoNotas extends Activity implements OnClickListener{
    
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.segundosemetrenotas);
		
	}
	
	public void onClick(View v) {
		
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		
		super.onCreateOptionsMenu(menu);
		MenuInflater inflater = getMenuInflater();
		inflater.inflate(R.menu.menunotas, menu);
		return true;
	}
	
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		
		switch (item.getItemId()) {
		
			case R.id.primer_semestre:
				startActivity(new Intent(this, PrimerNotas.class));
				return true;
	
			case R.id.segundo_semestre:
				startActivity(new Intent(this, SegundoNotas.class));
				return true;
				
			case R.id.final_ano:
				startActivity(new Intent(this, Notas.class));
				return true;

			case R.id.ir_menu:
				startActivity(new Intent(this, Menu.class));
				return true;	
		}
		return false;
	}
	

}

